package com.tang.util;

/**
 * Author:tibby tang
 * Created on 21/1/15.
 * Email:tangjian19900607@gmail.com
 * QQ:562980080
 */
public final class Logger {
    private static String logTag = "INFO";
    private static boolean isDebug = false;
    private Logger(){}
    public static void setDebug(boolean debug) {
        isDebug = debug;
    }
    public static void setTag(String tag){
        logTag = tag;
    }
    public static void log(String log) {
        if (isDebug) {
            System.out.println(logTag+"\t"+log);
        }

    }
}
